package behavior.observer;

/**
 * @author lzp
 * @Date:2023/3/7
 * @description: 真实的产品
 */
public class Product {

	/**
	 * 名称
	 */
	private String name;

	/**
	 * 价格
	 */
	private Double price;

	public Product(String name, Double price) {
		this.name = name;
		this.price = price;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}


}
